package com.yc.Testjvm.classload;

public class Test2 {
//    public static int a = Test2.t;
    public int k = 2;
    public static Test2 b = new Test2();
    public static int t  = 2;
//    public Test2 c = new Test2();
//    static {
//        t++;
//    }

    public Test2() {

//        try {
//            Thread.sleep(1000);
//        } catch (InterruptedException e) {
//            e.printStackTrace();
//        }
        t++;
        System.out.println("----t=" + t);
//        b.k++;
        System.out.println("----k=" + Test2.b);
        k++;
//
//        Test2 h = new Test2();
    }

    public static void main(String[] args) {
        Test2  m = new Test2();
    }
}
